package com.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication  //springboot应用程序
@ComponentScan({"com.action","com.service"})  //注解才会生效
@MapperScan("com.dao")      /*为con.dao包下的接口产生实效类，并实例化并存到spring容器*/
public class Mainboot {

    public static void main(String[] args) {
        SpringApplication.run(Mainboot.class,args);
    }
}
